<!DOCTYPE html>
<html>
<head>
    <title>{$category.name} {$category.seo_title} {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$category.seo_keywords},{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$category.seo_description},{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
    <hook name="before_head_end"/>
</head>


<body class="home blog site-layout-2">
    <!-- 头部 -->  
    <include file="public@nav"/>
    <!-- /头部 -->  

    <!-- 主体 -->
    <div id="main-container" class="container clearfix">
        <section class="post-left">
        
        <!-- 文章列表 -->
        <div class="index-main clearfix">
            <div class="main-title">
                <h4 class="post-left-title fl">{$category.name}</h4>
                <div class="fr"></div>
            </div>
            <div class="row">
            <php>
                $where=[
                'post.create_time'=>['egt',0]
                ];
                $page=[
                    'list_rows'=>10,
                    'next'=>'下一页',
                    'prev'=>'上一页'
                ];
            </php>
            <portal:articles item="vo" where="$where" order="post.create_time DESC" page="$page"
                                relation="categories"
                                categoryIds="$category.id"
                                returnVarName="articles_data">
                <div class="article-box clearfix excerpt-1">
                    <!-- col-md-4 -->
                    <div class="col-md-4">
                        <div class="thumbnail">
                            <a class="img-wraper" href="{:cmf_url('portal/Article/index',array('id'=>$vo.id))}">
                            <if condition="empty($vo.more.thumbnail)">
                                <img src="__TMPL__/public/assets/images/default_tupian4.png" class="wp-post-image" alt="{$vo.post_title}"/>
                            <else/>
                                <img src="{:cmf_get_image_url($vo.more.thumbnail)}" class="wp-post-image" alt="{$vo.post_title}"/>
                            </if>
                            </a>
                        </div>
                    </div>
                    <!-- /col-md-4 -->

                    <!-- col-md-8 -->
                    <div class="col-md-8">
                        <h2>
                            <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category['id']))}">{$vo.post_title}</a>
                        </h2>
                        <p class="txtcont hidden-xs">
                            <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category['id']))}">{$vo.post_excerpt}</a>
                        </p>
                        <div class="meta">
                            <span class="label label-info"><a href="#">{$vo.post_keywords}</a></span>	<time class="item"><i class="fa fa-clock-o"></i>{$vo.published_time|date="Y-m-d",###}</time>
                        </div>
                    </div>
                </div>
            </portal:articles>

            <ul class="pagination">
                <page/>
            </ul>
        </div><!-- /div.row -->
        
    </div><!-- /div.index-main -->
    <!-- /文章列表 -->

    </section><!-- /section.post-left -->

<include file='public@sidebar'/>
<include file='public@footer'/>
</div>
<!-- /主体 -->

<include file="public@scripts"/>
<hook name="before_body_end"/>
</body>
</html>